home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Columbia Kermit
/
kermit.zip
/
newsgroups
/
misc.20031118-20041115
/
000417_robertls@nortelnetworks.com_Tue Oct 19 17:27:41 2004.msg
< prev
next >
Wrap
Internet Message Format
|
2020-01-01
|
3KB
Path: newsmaster.cc.columbia.edu!newsfeed.nyu.edu!newsfeed.telusplanet.net!newsfeed.telus.net!snoopy.risq.qc.ca!torn!utnut!qcarhaaa.nortelnetworks.com!bcarh189.ca.nortel.com!zcars0v6!not-for-mail
From: "Robert Simmons" <robertls@nortelnetworks.com>
Newsgroups: comp.protocols.kermit.misc
Subject: Re: Kermit Script Output Out of Order
Date: Tue, 19 Oct 2004 15:27:46 -0500
Organization: Nortel
Lines: 48
Message-ID: <cl3tc5$5n0$1@zcars0v6.ca.nortel.com>
References: <cl29ql$dm7$1@zcars0v6.ca.nortel.com> <slrncnan01.3s1.fdc@sesame.cc.columbia.edu>
NNTP-Posting-Host: robertls-1.us.nortel.com
X-Trace: zcars0v6.ca.nortel.com 1098217669 5856 47.102.125.229 (19 Oct 2004 20:27:49 GMT)
X-Complaints-To: hawkinsj@nortelnetworks.com
NNTP-Posting-Date: Tue, 19 Oct 2004 20:27:49 +0000 (UTC)
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:15200
Okay... I'll look into the buffered vs. unbuffered mode. But what about the
output when it is redirected to a file. The output from kermit is out of
order there as well.
Robert
"Frank da Cruz" <fdc@columbia.edu> wrote in message
news:slrncnan01.3s1.fdc@sesame.cc.columbia.edu...
> On 2004-10-19, Robert Simmons <robertls@nortelnetworks.com> wrote:
> : Hopefully this group is still monitored...
> :
> Of course.
>
> : I have been developing a kermit script. I have found that when a run
the
> : script normally from a linux prompt that the output is mostly in order.
But
> : if I fork a process and run the script from a C++ program the output is
in
> : realtime for the AT responces but the script echo lines and the help
text
> : output is not dumped until the process is killed or dies.
> :
> : I notices the same order of output with the stdout redirected and
captured
> : to a file at the linux command prompt.
> :
> : Anyone know why? And how to get the output os the echo statements to be
dump
> : before the script dies or is killed?
> :
> C-Kermit was not really intended to be controlled by another process.
> When you use Kermit itself as your scripting tool, which is adequate for
> most purposes:
>
> http://www.columbia.edu/kermit/ckscripts.html
>
> you don't get the jumbled output.
>
> For historical (and to some extent practical) reasons, there is a mixture
> of buffered and unbuffered writes to stdout. If your process is reading
> C-Kermit's stdout, maybe it needs to read it in unbuffered mode?
>
> - Frank